package com.odianyun.springboottest.service.impl;

import com.odianyun.db.query.PageVO;
import com.odianyun.project.base.IEntity;
import com.odianyun.project.query.PageQueryArgs;
import com.odianyun.project.query.QueryArgs;
import com.odianyun.project.support.base.service.OdyEntityService;
import com.odianyun.springboottest.model.po.SoPackagePO;
import com.odianyun.springboottest.model.vo.SoPackageVO;
import com.odianyun.springboottest.mapper.SoPackageMapper;
import java.util.*;
import javax.annotation.Resource;

import com.odianyun.springboottest.service.SoPackageService;
import org.springframework.stereotype.Service;

/**
 * @author EDZ
 */
@Service
public class SoPackageServiceImpl extends OdyEntityService<SoPackagePO, SoPackageVO, PageQueryArgs, QueryArgs, SoPackageMapper> implements SoPackageService {
    @Resource
    private SoPackageMapper mapper;

    @Override
    protected SoPackageMapper getMapper() {
        return mapper;
    }

    @Override
	protected void afterListPage(PageVO<? extends IEntity> pageVO) {
	    for (IEntity entity : pageVO.getList()) {
	        SoPackageVO vo = (SoPackageVO) entity;
            vo.setPackageCode("packageCode");
            vo.setOrderCode("orderCode");
	    }
	}



}
